package A.q.day07;
//不报错就是重载了，数据一样顺序不一样也行
public class OverLoadDemo {
    public static void main(String[] args) {
        show();
        show("zs");
        show(25);
        show("zs",25);
        show(25,"zs");
        //show(3.15);//编译错误，里面没有double参的show
    }
    public static void show(){}
    public static void show(String name){}
    public static void show(String name,int age){}
    public static void show(int age){}
    public static void show(int age,String name){}
    //public static int show(){return 1;}//编译错误，重载与返回值类型无关
    //public static void show(String address){}//编译错误，重载与参数名称无关
}
